import { defAxios as request } from '@/utils/http'

/**
 * 工单 分页查询
 * @returns
 */
export const getOrderList = params => request({
  url: '/workorder/page/list',
  method: 'GET',
  params
})

/**
 * 分配工单
 * @param {*} params
 * @returns
 */
export const orderDistribution = data => request({
  url: '/workorder/distribution',
  method: 'POST',
  data
})
/**
 * 工单处理
 * @param {*} params
 * @returns
 */
export const orderInspection = data => request({
  url: '/inspectionfile/handle/processing',
  method: 'POST',
  data
})

/**
 * 根据工单ID查收任务问题分页列表
 * @returns
 */
export const getOrderByQuestion = params => request({
  url: '/inspectionFile/page/list/workorker',
  method: 'GET',
  params
})
